{% extends 'home/home.html' %}
{% block index %}
{% load static %}
<div class="uk-section uk-margin-medium-top uk-container uk-margin-top-large" style="padding: 10px;">
    <div class="uk-margin-medium uk-grid" uk-grid="">
        <div class="uk-width-1-1 uk-width-1-1@s">
            <article class="uk-article">
                <h2 class="uk-article-title uk-text-center" style="color: #28a">
                    <strong>
                        博客列表
                    </strong>
                    <hr
                        style="height: 2px;padding: 0;border: none;text-align: center;background-image: linear-gradient(to right, rgba(60, 122, 198, 0), rgba(6, 58, 122, 1), rgba(60, 122, 198, 0));" />
                </h2>
                {% if blogs %}
                <dl class="uk-description-list uk-description-list-divider">
                    {% for blog in blogs %}
                    {% if blog.show %}
                    <dt>
                        <a href="{{ blog.md5 }}">
                            <h3 class="uk-text-left uk-text-emphasis">
                                {{ blog.name }}
                            </h3>
                        </a>
                    </dt>
                    <dd class="uk-text-right">
                        标签： {{ blog.tag }}
                    </dd>
                    <dd class="uk-text-right">
                        更新时间： {{ blog.modified_time }}
                    </dd>
                    {% endif %}
                    {% endfor %}
                </dl>
                {% else %}
                <p>这里空无一人。</p>
                {% endif %}
            </article>
        </div>
    </div>
</div>
{% endblock %}